﻿<%@ Page Title="全部正则表达式" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="All.aspx.cs" Inherits="RegexLib.Web.Views.Regex.All" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContentPlaceHolder" runat="server">
	<link rel="Stylesheet" type="text/css" href="/Content/styles/RxView.css"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<% int pageIndex = (int)ViewData["PageIndex"]; %>
<% int pageSize = (int)ViewData["PageSize"]; %>
<% int totalPages = (int)ViewData["TotalPages"]; %>
<% RegexInfo[] regexes = (RegexInfo[])ViewData["Regexes"]; %>
<div class="box">
	<div class="bt">全部正则表达式</div>
	<div class="bc">
<% for (int i = 0; i < regexes.Length; i++) %>
<% { %>
		<%var rx = regexes[i]; %>
		<p class="sm-des">[<%= rx.AddedTime.ToString("yyyy-MM-dd HH:mm:ss") %>]
		<a href='<%= RxUrl.GetViewRegexUrl(rx.AccessKey) %>'><%= HttpUtility.HtmlEncode(rx.Title.LimitLength(80))%></a></p>
		<p class="sm-des"><%= HttpUtility.HtmlEncode(rx.Description.LimitLength(200)) %></p>
		<hr />
		<% if (i == 10 || i == 20) %>
		<% { %>
			<div class="ad-c"><%= RxAdsUtility.GetAdsCode("inpage") %></div>
			<hr />
		<% } %>
<% } %>
<% for (int pi = 1; pi <= totalPages; pi++) %>
<% { %>
	<% if (pi == pageIndex) %>
	<% { %>
		<span class="rx-curpg"><%= pi %></span>
	<% } %>
	<% else %>
	<% { %>
		<span class="rx-pg"><a href='<%= RxUrl.GetRegexListAllUrl(pi, pageSize) %>'><%= pi %></a></span>
	<% } %>
<% } %>
	</div>
</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
